package testApplets;

import processing.core.PApplet;
import simpleGeom.Mesh;
import simpleGeom.MeshNode;

public class FinalMirrorApplet extends PApplet {
	String path="/Users/caad/Desktop/Grotto - First Half V/03_scaled/Voxeljet/layer0/";
public void setup(){
	//mirror(path+"v9_0_1detail.obj");
	mirror(path+"v9_0_2detail.obj");
	mirror(path+"v9_0_3detail.obj");
	mirror(path+"v9_0_4detail.obj");
	exit();
}
public void mirror(String path){
	Mesh mesh=new Mesh(path+"");
	for (int i=0;i<mesh.getNNodes();i++){
		MeshNode n=mesh.getNode(i);
		n.z=-1*n.z;
	}
	path=path.replace(".obj", "mirror.obj");
	mesh.saveMesh(path);
}
public void draw(){
	
}
}
